<div class="bot-bg">
  <div class="filt-bl">
    <%= link_to_function t('manage.model_filter.title'), "Manage.toggle_element('block_filter')", :class=>"dark-arr" %>
    
    <%= t('manage.model_filter.total_count') %>: <%= @questions.total_count %>
    
    <%= cookie_content_tag(:div, :id=>"block_filter", :class=>"filt") do %>
      <%= form_for search_filter, :url => manage_questions_path, :html => { :method => :get } do |f| %>
        <% controller.scopes_configuration.each do |key, value| %>
          <%= f.label value[:as], t(value[:as], :scope => "activerecord.attributes.question") %>
          <%= f.text_field value[:as], :class => "text", :name => value[:as] %>
        <% end %>
          
        <div class="buts">
          <%= content_tag(:button, :value=>"search", :type=>"submit", :name=>"commit", :class=>"gr cupid-green") do %>
            <%= t('manage.model_filter.search') %>
          <% end %>
          
          <%= link_to t('manage.model_filter.clear'), manage_questions_path, :class=>"erase" %>
        </div>
      <% end %>
    <% end %>
  </div>
  <div class="sort">
  	<label><%= t('manage.sort') %></label>
    <div class="select-input"><%= link_to_function t(search_filter.current_order, :scope => "manage.questions.sort"), "SelectList.toggle(event)", :class=>"corn", :id=>'sort_select' %></div>
    <div id='sort_select_list' class="select-list" style='display:none;'>
      <% controller.orders_configuration.each do |key, value| %>
        <%= link_to_sort(t("#{key}_desc", :scope => "manage.questions.sort"), :name => key, :order_type=>'desc') %>
        <%= link_to_sort(t("#{key}_asc", :scope => "manage.questions.sort"), :name => key, :order_type=>'asc') %>
      <% end %>
    </div>
  </div>
</div>
